package com.lzh.rocblogbackend.controller;

import com.lzh.rocblogbackend.common.AjaxResult;
import com.lzh.rocblogbackend.mapper.FriendsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
public class FriendsController {
    @Autowired
    FriendsMapper friendsMapper;
    @RequestMapping("/getfriends")
    public HashMap<String, Object> getFriends() {
        return AjaxResult.success(friendsMapper.getFriends());
    }
}
